/**
 * Created by wcheryl on 2017/10/29 0029.
 */
import axios from 'axios'
import config from '../config'

const instance = axios.create({
  baseURL: `${config.url}`
})

export function getMovieInfo(){
    return instance.get('/v2/movie/top250').then(resp => resp.data)
}

export function getOnFilm(){
    return instance.get('/v2/movie/in_theaters').then(resp => resp.data)
}

export function getNewFilm(){
  return instance.get('/v2/movie/coming_soon').then(resp => resp.data)
}
